Telegram Group & Telegram Channel
# پاسخ تمرین شماره 1
def add(x, y):
return x + y
def min(x, y):
return x - y
def mul(x, y):
return x * y
def div(x, y):
return x / y
x = int(input('اولين عدد را وارد کنيد:'))
o = input('عملگر انتخابي خود را وارد کنيد (/,*,-,+):')
y = int(input('دومين عدد را وارد کنيد:'))
if o == '+':
o = add(x,y)
print(o)
elif o == '*':
o = mul(x,y)
print(o)
elif o == '/':
o = div(x,y)
print(o)
elif o == '-':
o = min(x,y)
print(o)
else:
print('عملگر وارد شده تعریف نشده است.')



tg-me.com/python12/1302
Create:
Last Update:

# پاسخ تمرین شماره 1
def add(x, y):
return x + y
def min(x, y):
return x - y
def mul(x, y):
return x * y
def div(x, y):
return x / y
x = int(input('اولين عدد را وارد کنيد:'))
o = input('عملگر انتخابي خود را وارد کنيد (/,*,-,+):')
y = int(input('دومين عدد را وارد کنيد:'))
if o == '+':
o = add(x,y)
print(o)
elif o == '*':
o = mul(x,y)
print(o)
elif o == '/':
o = div(x,y)
print(o)
elif o == '-':
o = min(x,y)
print(o)
else:
print('عملگر وارد شده تعریف نشده است.')

BY پایتون / python


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python12/1302

View MORE
Open in Telegram


پایتون python Telegram | DID YOU KNOW?

Date: |

For some time, Mr. Durov and a few dozen staffers had no fixed headquarters, but rather traveled the world, setting up shop in one city after another, he told the Journal in 2016. The company now has its operational base in Dubai, though it says it doesn’t keep servers there.Mr. Durov maintains a yearslong friendship from his VK days with actor and tech investor Jared Leto, with whom he shares an ascetic lifestyle that eschews meat and alcohol.

The STAR Market, as is implied by the name, is heavily geared toward smaller innovative tech companies, in particular those engaged in strategically important fields, such as biopharmaceuticals, 5G technology, semiconductors, and new energy. The STAR Market currently has 340 listed securities. The STAR Market is seen as important for China’s high-tech and emerging industries, providing a space for smaller companies to raise capital in China. This is especially significant for technology companies that may be viewed with suspicion on overseas stock exchanges.

پایتون python from br


Telegram پایتون / python
FROM USA